home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'Tabnotbk.pas' rev: 3.00
-
- #ifndef TabnotbkHPP
- #define TabnotbkHPP
- #include <Menus.hpp>
- #include <ComCtrls.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Messages.hpp>
- #include <Forms.hpp>
- #include <StdCtrls.hpp>
- #include <Classes.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Tabnotbk
- {
- //-- type declarations -------------------------------------------------------
- typedef void __fastcall (__closure *TPageChangeEvent)(System::TObject* Sender, int NewTab, bool &AllowChange
- );
-
- class DELPHICLASS TTabPage;
- class PASCALIMPLEMENTATION TTabPage : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- protected:
- virtual void __fastcall ReadState(Classes::TReader* Reader);
-
- public:
- __fastcall virtual TTabPage(Classes::TComponent* AOwner);
-
- __published:
- __property Caption ;
- __property Height = {stored=false};
- __property TabOrder = {stored=false, default=-1};
- __property Visible = {stored=false, default=1};
- __property Width = {stored=false};
- __property Enabled = {stored=false, default=1};
- public:
- /* TWinControl.CreateParented */ __fastcall TTabPage(HWND ParentWindow) : Controls::TWinControl(ParentWindow
- ) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TTabPage(void) { }
-
- };
-
- class DELPHICLASS TTabbedNotebook;
- class PASCALIMPLEMENTATION TTabbedNotebook : public Comctrls::TCustomTabControl
- {
- typedef Comctrls::TCustomTabControl inherited;
-
- private:
- Classes::TList* FPageList;
- Classes::TStrings* FAccess;
- int FPageIndex;
- Graphics::TFont* FTabFont;
- int FTabsPerRow;
- Classes::TNotifyEvent FOnClick;
- TPageChangeEvent FOnChange;
- System::AnsiString __fastcall GetActivePage(void);
- void __fastcall SetPages(Classes::TStrings* Value);
- void __fastcall SetActivePage(const System::AnsiString Value);
- void __fastcall SetTabFont(Graphics::TFont* Value);
- void __fastcall SetTabsPerRow(int NewTabCount);
- MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
- HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
- HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
-
- protected:
- virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
- DYNAMIC void __fastcall Change(void);
- DYNAMIC void __fastcall Click(void);
- virtual void __fastcall CreateHandle(void);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- DYNAMIC Classes::TComponent* __fastcall GetChildOwner(void);
- DYNAMIC void __fastcall GetChildren(Classes::TGetChildProc Proc, Classes::TComponent* Root);
- virtual void __fastcall Loaded(void);
- DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
- virtual void __fastcall ReadState(Classes::TReader* Reader);
- void __fastcall SetPageIndex(int Value);
- virtual void __fastcall ShowControl(Controls::TControl* AControl);
- MESSAGE void __fastcall CMTabFontChanged(Messages::TMessage &Message);
-
- public:
- __fastcall virtual TTabbedNotebook(Classes::TComponent* AOwner);
- __fastcall virtual ~TTabbedNotebook(void);
- int __fastcall GetIndexForPage(const System::AnsiString PageName);
- __property Graphics::TFont* TopFont = {read=FTabFont};
- void __fastcall TabFontChanged(System::TObject* Sender);
-
- __published:
- __property System::AnsiString ActivePage = {read=GetActivePage, write=SetActivePage, stored=false};
-
- __property Align ;
- __property Enabled ;
- __property int PageIndex = {read=FPageIndex, write=SetPageIndex, default=0};
- __property Classes::TStrings* Pages = {read=FAccess, write=SetPages, stored=false};
- __property Font ;
- __property int TabsPerRow = {read=FTabsPerRow, write=SetTabsPerRow, default=3};
- __property Graphics::TFont* TabFont = {read=FTabFont, write=SetTabFont};
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
- __property TPageChangeEvent OnChange = {read=FOnChange, write=FOnChange};
- __property OnEnter ;
- __property OnExit ;
- public:
- /* TWinControl.CreateParented */ __fastcall TTabbedNotebook(HWND ParentWindow) : Comctrls::TCustomTabControl(
- ParentWindow) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define CM_TABFONTCHANGED (int)(45156)
-
- } /* namespace Tabnotbk */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Tabnotbk;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Tabnotbk
-